package pattern.singleton;

import java.io.IOException;
import java.io.InputStream;

public class RuntimeDemo {
    public static void main(String[] args) throws IOException {
        Runtime runtime = Runtime.getRuntime();
        Process exec = runtime.exec("ipconfig");

        InputStream inputStream = exec.getInputStream();
        byte[] bytes = new byte[1024 * 1024 * 100];
        
        int read = inputStream.read(bytes);

        System.out.println(new String(bytes, 0, read,"GBK"));
    }
}
